{% include 'common/head.html' %}
<body>
    {% include 'common/top.html' %}
    <div id="Wrapper">
    <div id="Main">
        <div id="Sidebar">    
        </div>
        <div id="Rightbar">
            {% include 'rightbar/user.html' %}
            <div class="sep20"></div>
            {% if node.sidebar %}
            <div class="box"><div class="inner">{{ node.sidebar }}</div></div>
            <div class="sep20"></div>
            {% endif %}
            {% if node.sidebar_ads %}
            <div class="box"><div class="inner">{{ node.sidebar_ads }}</div></div>
            {% else %}
            {% include 'rightbar/ads.html' %}
            {% endif %}
            {% include 'rightbar/recent_nodes.html' %}
        </div>
        <div id="Content">
            <div class="box">
                <div class="cell" style="padding-bottom: 0px;"><table cellpadding="0" cellspacing="0" border="0" width="100%">
                <tr>
                    {% if node.avatar_large_url %}
                    <td width="73" align="center" valign="top">{{ node|avatar:"large" }}</td>
                    <td width="10"></td>
                    {% endif %}
                    <td width="auto" valign="top"><div class="fr" align="right"><span class="snow">{{ l10n.total_topics }}</span> <span class="fade"><strong>{{ node.topics }}</strong>{% if member %} &nbsp;<span class="snow">•</span>&nbsp; {% if favorited %}<a href="/unfavorite/node/{{ node.name }}">取消收藏</a>{% else %}<a href="/favorite/node/{{ node.name }}">加入收藏</a>{% endif %}{% if can_manage %} &nbsp;<span class="snow">•</span>&nbsp; <a href="/backstage/node/{{ node.name }}">管理节点信息</a>{% endif %}{% endif %}</span></div>
                    <span class="bigger"><a href="/">{{ site.title }}</a> <span class="chevron">&nbsp;›&nbsp;</span> {{ node.title|escape }}</span>
                    {% if node.header %}
                    <div class="sep10"></div>
                    <span class="header">{{ node.header|linebreaksbr }}</span>
                    {% endif %}
                    {% if can_create %}
                    <div class="sep10"></div>
					<div class="sep10"></div>
                    <div align="left"><a href="/new/{{ node.name }}" class="super normal button">{{ l10n.create_new_topic }}</a></div>
                    <div class="sep5"></div>
                    <div class="sep10"></div>
                    <div>
                        <div style="padding: 3px 10px 5px 10px; display: inline-block; border-bottom: 5px solid transparent; margin: 0px 2px 0px 2px;"><a href="/go/{{ node.name }}">所有讨论</a></div>
                        <div style="padding: 3px 10px 5px 10px; display: inline-block; border-bottom: 5px solid #3c3; margin: 0px 2px 0px 2px;">相关节点</div>
                    </div>
                    {% endif %}
                    </td>
                </tr>
                </table>
                </div>
                {% for sibling in siblings %}
				<div class="cell">
					<table cellpadding="0" cellspacing="0" border="0" width="100%">
						<tr>
							<td width="73" align="center" valign="middle">{{ sibling|avatar:"large" }}</td>
							<td width="10"></td>
							<td width="auto" valign="middle">
							<strong class="bigger"><a href="/go/{{ sibling.name }}">{{ sibling.title|escape }}</a></strong><div class="sep10"></div>{{ sibling.topics }} topics
							</td>
						</tr>
					</table>
				</div>
				{% endfor %}
				<div class="inner">
                    {% if node.footer %}
                        {% if pagination %}
                        <div class="sep10"></div>
                        {% endif %}
                        <span class="footer">{{ node.footer|linebreaksbr }}</span>
                    {% endif %}
                </div>
            </div>
        </div>
    <div class="c"></div>
    </div>
    </div>
    {% include 'common/bottom.html' %}
</body>
</html>